<div class="page_navigation">
<?php if(function_exists('wp_pagenavi')) { // if PageNavi is activated ?>

<?php wp_pagenavi(); // Use PageNavi ?>

<?php } else { // Otherwise, use traditional Navigation ?>

            <div id="more_prev">
                <div class="previous_link"><?php next_posts_link(__('Older Posts','profile')) ?></div>
                <div class="newer_links"><?php previous_posts_link(__('Newer Posts', 'profile')) ?></div>   
             </div><!--end more_prev -->
<?php } ?> 
</div>
